package cn.edu.sptc.LiXin.hellosprring.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/rest")
public class RestRequestController {
    @GetMapping("/api100")
    public String api100() {
        return "api100";
    }

    @GetMapping("/api101/{uid}")
    public String api101(@PathVariable("uid") String id) {
        return "api101:" + id;
    }

    @GetMapping("/api102")
    public String api102(@RequestParam(required = false,value = "uid",defaultValue = "0001") String id) {
        return "api102:" + id;
    }
}
